package com.tao.ai.controller;

import com.tao.ai.service.CourseService;
import com.tao.ai.service.StudentService;
import com.tao.ai.vo.CourseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StudentController {
    @Autowired
    private CourseService courseService;
    @Autowired
    private StudentService studentService;
    @RequestMapping("/coursefindname2")
    public CourseVo courseFindName2(String ppuser){
        return courseService.getCourseName2(ppuser);
    }
    @RequestMapping("/studentsign2")
    public int studentSign(String courseName,Integer studentId){
        return studentService.signStudent(courseName,studentId);
    }
}
